import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/common.css'
// 引用echarts
import ECharts from 'vue-echarts'
import 'echarts/lib/chart/line'
import Axios from 'axios'
import api from './http/api/api'
import http from './http/http'

// axios 拦截器
import './http/axios'

// 对后端接口 进行全局注册
Vue.prototype.$api = api
// 对请求方式 进行全局注册
Vue.prototype.$http = http
Vue.prototype.$http = Axios

Vue.component('chart', ECharts)
Vue.config.productionTip = false

// 路由跳转
Vue.prototype.$goRoute = function (index) {
  this.$router.push(index)
}

new Vue({
  data: function () {
    return {
      MapGd: null,
      HotMap: null
    }
  },
  router,
  store,
  render: h => h(App)
}).$mount('#app')
